package com.hsd.service.impl;

import com.hsd.service.IAccountService;
import org.springframework.stereotype.Component;

@Component("as")
public class IAccountServiceImpl implements IAccountService {
    public boolean save(String acc,Double money){
        System.out.println("调用dao层存钱"+money);
        return true;
    }
    public boolean take(String acc,Double money){
        System.out.println("调用dao层取钱"+money);
        return true;
    }
    public boolean transfer(String fromAcc,String toAcc,Double money){
        System.out.println("调用dao层转账操作：从"+fromAcc+"转账到"+toAcc+" 金额："+money);
        return true;
    }
}
